package lance.honeydew.util;

public class OrderInformationUtil {

	public static Long STATE_INIT_INT = new Long(1);
	
	public static Long STATE_HAVEPAY_INT = new Long(2);
	
	public static Long STATE_OUTSTORE_INT = new Long(3);
	
	public static Long STATE_DISABLE_INT = new Long(4);
	
	public static String STATE_INIT_Str = "訂單成立";
	
	public static String STATE_HAVEPAY_Str = "訂單已付款";
	
	public static String STATE_OUTSTORE_Str = "訂單已出貨";
	
	public static String STATE_DISABLE_Str = "訂單失效";
	
	public static String getStateStr(int value) {
		
		String result = "";
		
		switch(value) {
			case 1:
				result += STATE_INIT_Str;
				break;
			case 2:
				result += STATE_HAVEPAY_Str;
				break;
			case 3:
				result += STATE_OUTSTORE_Str;
				break;
			case 4:
				result += STATE_DISABLE_Str;
				break;
			default:
				result += "";
				break;
		}
		
		return result;
	}
}
